home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / PInterfaces / Disks.p < prev    next >
Encoding:
Text File  |  1994-11-11  |  2.1 KB  |  96 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Disks.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT Disks;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __DISKS__}
  27. {$SETC __DISKS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC DisksIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$IFC UNDEFINED __OSUTILS__}
  40. {$I OSUtils.p}
  41. {$ENDC}
  42. {    MixedMode.p                                                    }
  43. {    Memory.p                                                    }
  44.  
  45. {$PUSH}
  46. {$ALIGN MAC68K}
  47. {$LibExport+}
  48.  
  49. CONST
  50.     sony                        = 0;
  51.     hard20                        = 1;
  52.  
  53.  
  54. TYPE
  55.     DrvSts = RECORD
  56.         track:                    INTEGER;                                { current track }
  57.         writeProt:                SignedByte;                                { bit 7 = 1 if volume is locked }
  58.         diskInPlace:            SignedByte;                                { disk in drive }
  59.         installed:                SignedByte;                                { drive installed }
  60.         sides:                    SignedByte;                                { -1 for 2-sided, 0 for 1-sided }
  61.         qLink:                    QElemPtr;                                { next queue entry }
  62.         qType:                    INTEGER;                                { 1 for HD20 }
  63.         dQDrive:                INTEGER;                                { drive number }
  64.         dQRefNum:                INTEGER;                                { driver reference number }
  65.         dQFSID:                    INTEGER;                                { file system ID }
  66.         CASE INTEGER OF
  67.         0: (
  68.             twoSideFmt:                    SignedByte;                            { after 1st rd/wrt: 0=1 side, -1=2 side }
  69.             needsFlush:                    SignedByte;                            { -1 for MacPlus drive }
  70.             diskErrs:                    INTEGER;                            { soft error count }
  71.            );
  72.         1: (
  73.             driveSize:                    INTEGER;
  74.             driveS1:                    INTEGER;
  75.             driveType:                    INTEGER;
  76.             driveManf:                    INTEGER;
  77.             driveChar:                    INTEGER;
  78.             driveMisc:                    SignedByte;
  79.            );
  80.     END;
  81.  
  82. FUNCTION DiskEject(drvNum: INTEGER): OSErr;
  83. FUNCTION SetTagBuffer(buffPtr: UNIV Ptr): OSErr;
  84. FUNCTION DriveStatus(drvNum: INTEGER; VAR status: DrvSts): OSErr;
  85.  
  86. {$ALIGN RESET}
  87. {$POP}
  88.  
  89. {$SETC UsingIncludes := DisksIncludes}
  90.  
  91. {$ENDC} {__DISKS__}
  92.  
  93. {$IFC NOT UsingIncludes}
  94.  END.
  95. {$ENDC}
  96.